import Layout from '@/views/layout/frame/Layout.vue'

export default [
  // 维修
  {
    path: '/repair',
    component: Layout,
    hidden: false,
    alwaysShow: true,
    name: 'repair',
    meta: {
      title: '维修管理',
      icon: 'iconfont icon-xunjianguanli',
      roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
    },
    children: [
      {
        path: 'plan',
        name: 'RepairPlan',
        meta: { title: '定时维修计划', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/repair/plan/index.vue')
      },
      {
        path: 'task',
        name: 'RepairTask',
        meta: { title: '维修任务', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/repair/task/index.vue')
      },
      {
        path: 'standard',
        name: 'RepairStandard',
        meta: { title: '维修标准', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/repair/standard/index.vue')
      }
    ]
  }
]
